package top.lyc829.myvideoplayer.entity;

public class EntityVideo {

    String path;
    Long duration;
    String title;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }



    public EntityVideo() {
    }

    public EntityVideo(String path, Long duration) {
        this.path = path;
        this.duration = duration;
        this.title = path.substring(path.lastIndexOf("/") + 1);
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public Long getDuration() {
        return duration;
    }

    public void setDuration(Long duration) {
        this.duration = duration;
    }
}
